package com.ghj.demo1;

/**
 * @author ghj
 * @create 2023-06-17 18:27
 */
//代理角色
public class Proxy {

    private Host host;

    public Proxy() {

    }

    public Proxy(Host host) {
        this.host = host;
    }

    public void rent(){
        host.rent();
        seeHome();
        heTong();
        fare();
    }

    public void seeHome(){
        System.out.println("中介带客户看房子");
    }

    public void heTong(){
        System.out.println("签租赁合同");
    }

    public void fare(){
        System.out.println("收中介费");
    }
}
